package com.googlecode.scrptingdoclet.model;

import java.util.List;

import com.google.common.collect.Lists;
import com.thoughtworks.qdox.model.JavaClass;
import com.thoughtworks.qdox.model.JavaField;
import com.thoughtworks.qdox.model.JavaMethod;

public class DefaultClassModel {

	private JavaClass javaClass;

	private List<JavaMethod> javaMethods = Lists.newArrayList();

	private List<JavaField> javaFields = Lists.newArrayList();

	public DefaultClassModel(JavaClass clazz) {
		this.javaClass = clazz;
	}

	public String getName() {
		return javaClass.getName();
	}

	public void addJavaMethod(JavaMethod javaMethod) {
		javaMethods.add(javaMethod);
	}

	public void addJavaField(JavaField javaField) {
		javaFields.add(javaField);
	}
}
